-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cop to stop bin
use in service blocks
#15154
Merged
MikeMcQuaid
merged 1 commit into
Homebrew:master
from
apainintheneck:cop-to-prevent-bin-in-service-blocks
Apr 5, 2023
Merged
Add cop to stop bin
use in service blocks
#15154
MikeMcQuaid
merged 1 commit into
Homebrew:master
from
apainintheneck:cop-to-prevent-bin-in-service-blocks
Apr 5, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The preferred method is opt_bin because that works with the API and is more portable (works between versions). Also removed the last example from the docs of `bin/"name"` from the service block section
The changes on core were already fixed as mentioned above but this is what the error would look like before those changes.
|
MikeMcQuaid
approved these changes
Apr 5, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @apainintheneck, great work!
ZhongRuoyu
added a commit
to ZhongRuoyu/brew
that referenced
this pull request
Apr 29, 2023
This is a follow-up to Homebrew#15154. In addition to `bin`, the `service` block can also reference other cellar paths like `libexec`. They don't work with the API either, as reported in https://github.com/orgs/Homebrew/discussions/4459. Violations are already corrected in Homebrew/homebrew-core#129736. Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
7 tasks
ZhongRuoyu
added a commit
to ZhongRuoyu/brew
that referenced
this pull request
Apr 29, 2023
This is a follow-up to Homebrew#15154. In addition to `bin`, the `service` block can also reference other cellar paths like `libexec`. They don't work with the API either, as reported in https://github.com/orgs/Homebrew/discussions/4459. Violations are already corrected in Homebrew/homebrew-core#129736 and Homebrew/homebrew-core#129737. Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
ZhongRuoyu
added a commit
to ZhongRuoyu/brew
that referenced
this pull request
Apr 29, 2023
This is a follow-up to Homebrew#15154. In addition to `bin`, the `service` block can also reference other cellar paths like `libexec`. They don't work with the API either, as reported in https://github.com/orgs/Homebrew/discussions/4459. Violations are already corrected in Homebrew/homebrew-core#129736 and Homebrew/homebrew-core#129737. Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Fixes #15113. The offending formulas were already changed in Homebrew/homebrew-core#127462. This just stops people from using it in the future here. The preferred method is opt_bin because that works with the API and is more portable (works between versions).
There was some talk about making this a runtime error but I opted for a cop because a runtime error wouldn't be backwards compatible. We can check and change everything in
homebrew/core
but we can't do that for private taps.I also removed the last example from the docs of
bin/"name"
from the service block section.